//
//  TTRecyclingHomeRightNavbarViewManager.m
//  TaoTuo
//
//  Created by LG on 2020/9/12.
//  Copyright © 2020 刘广. All rights reserved.
//

#import "TTRecyclingHomeRightNavbarViewManager.h"

static TTRecyclingHomeRightNavbarViewManager *manager;

@interface TTRecyclingHomeRightNavbarViewManager ()

@end

@implementation TTRecyclingHomeRightNavbarViewManager

+ (instancetype)sharedManager
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[self alloc] init];
    });
    return manager;
}

- (void)hiddenRightBarView
{

    UINavigationController *nav = [LLRouteTool getCurrentNavigationController];
    for (UIView *view in nav.navigationBar.subviews) {
        if ([view isKindOfClass:NSClassFromString(@"LLSegmentView")]) {
            view.hidden = YES;
            break;
        }
    }
}

- (void)showRightBarView
{
    UINavigationController *nav = [LLRouteTool getCurrentNavigationController];
    for (UIView *view in nav.navigationBar.subviews) {
        if ([view isKindOfClass:NSClassFromString(@"LLSegmentView")]) {
            view.hidden = NO;
            break;
        }
    }
}


//- (void)setRightBarViewBlock:(void (^)(NSInteger))rightBarViewBlock
//{
//    
//}


@end
